﻿using BookStorage.Service;
using Code.Services.Admins.Dto;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Code.Services.Admins
{
    public interface IAdminService
    {
        Task<ResultDto<AdminTokenDto>> Login(LoginDto loginDto);
        Task<ResultDto<List<AdminDto>>> AdminList(int PageIndex, int PageSize = 10);
        ResultDto<AdminDto> Create(AdminCreateOrUpdateDto dto);
        ResultDto<AdminCreateOrUpdateDto> Edit(int Id);
        ResultDto<AdminDto> Update(AdminCreateOrUpdateDto dto);
        bool Delete(int id);
        bool Delete(int[] ids);
    }
}